/**     
 * @Title: AdminController.java   
 * @Package me.springboot.controller   
 * @Description: TODO
 * @author weiwei 
 * @date 2017年9月1日 上午10:22:58   
 * @version V1.0     
 */
package me.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: AdminController
 * @Description: TODO
 * @author weiwei
 * @date 2017年9月1日 上午10:22:58
 * 
 */
@Controller
public class AdminController {

	@RequestMapping("/admin/")
	public String adminIndex(Model model) {
		model.addAttribute("dashboard", "dashboard");
		return "admin/index";
	}

	@RequestMapping("/admin/user")
	public String adminUser(Model model) {
		model.addAttribute("user", "user");
		return "admin/user";
	}
}